﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model.Interfaces;
using ViewModel.Interfaces;

namespace ViewModel
{
    public class ProjectsMainViewModel
    {
        public ProjectsMainViewModel(IUser user, IViewModelObjectFactory factory)
        {
            _User = user;
            _factory = factory;
            Navigation = _factory.CreateNavigationViewModel();
            Projects = _factory.CreateProjectsViewModel();
        }

        private IUser _User;
        private IViewModelObjectFactory _factory;
       
        public IUser User
        {
            get { return _User; }
        }

        public INavigationViewModel Navigation { get; set; }

        public IProjectsViewModel Projects { get; set; }
    }
}
